package com.cloud.pikachu.csd.controller;

import com.cloud.pikachu.csd.domain.SysWorker;
import com.cloud.pikachu.csd.domain.WorkItem;
import com.cloud.pikachu.csd.service.SysWorkService;
import com.cloud.pikachu.csd.service.WorkItemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 员工信息查询接口
 */
@RestController
@RequestMapping("/csd/syswork")
public class SysWorkController {
    private static final Logger logger = LoggerFactory.getLogger(SysWorkController.class);
    @Autowired
    private SysWorkService sysWorkService;

    @PostMapping("/workInfo/{id}")
    public SysWorker getSysWorkerInfo(@PathVariable("id") int id){
       return sysWorkService.getSysWorkerInfo(id);
    }

}
